import Vue from 'vue'
import App from './App'
import { common } from '@/common/api/common.js'
import { apis } from '@/common/api/api.js'
import { interactive } from '@/common/utils/interactive.js'
import { goto } from '@/common/utils/goto.js'
import { utils } from '@/common/utils/util.js'

Vue.prototype.$api = apis
Vue.prototype.$goto = goto
Vue.prototype.$url = common.apiurl
Vue.prototype.$appId = common.appId
Vue.prototype.$interactive = interactive
Vue.prototype.$utils = utils


//注册全局组件
import zhouWeiNavBar from "@/components/zhouWei-navBar";
Vue.component("nav-bar", zhouWeiNavBar);

Vue.config.productionTip = false

uni.getSystemInfo({
    success: function (res) {
        Vue.prototype.$systemInfo = res
    }
});


// 引入全局uView
import uView from 'uview-ui';
Vue.use(uView);

App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
